package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.entity.SafeScoreRecord
import cn.exrick.xboot.base.service.ISafeScoreRecordService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class ISafeScoreRecordController : IEnterpriseUserController.ISafeScoreRecord{

    @Autowired
    private lateinit var iSafeScoreRecordService: ISafeScoreRecordService

    override fun createOrUpdateScoreRecord(safeScoreRecord: SafeScoreRecord): Result<Any?>? {

        return iSafeScoreRecordService.createOrUpdateScoreRecord(safeScoreRecord)
    }

    override fun removeScoreRecord(ids: Array<out String>): Result<Any?>? {

        return iSafeScoreRecordService.removeScoreRecord(ids)
    }

    override fun getDetailById(id: String?): Result<SafeScoreRecord?>? {

        return iSafeScoreRecordService.getDetailById(id)
    }

    override fun getJScoreRecordList(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iSafeScoreRecordService.getJScoreRecordList(pageVo)
    }
}